﻿using System;
using UnityEngine;
using YooAsset;
namespace LitFramework
{
    public class AssetState_UpdateOver : IState
    {
        public Action onUpdateOver;

        public StateMechine Master { get; set; }

        public void OnEnter(params object[] values)
        {
            GameManager.Instance.InitState = "HotUpdate UpdateOver";
            GameManager.Instance.InitProgress = 1;

            var defaultPackage = YooAssets.GetPackage(ProjectConfig.Config.packageName);
            YooAssets.SetDefaultPackage(defaultPackage);
            onUpdateOver?.Invoke();
        }

        public void OnExit()
        {

        }

        public void OnUpdate()
        {

        }
    }
}